<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/4/18
 * Time: 14:05
 */

namespace app\admin\model;


use think\Model;

class Adminuser extends Model
{
    protected $table = 'admin';

    public function checklogin($user, $pass)
    {
        $res = $this -> where('admin', $user) -> where('password', $pass) -> find();
        return $res;
    }
}